PowerTCP Telnet for .NET CF
Read(String[]) Method
See Also  Send comments on this topic.
Dart.Common Namespace > TcpBase Class > Read Method : Read(String[]) Method




delimiters
An array of delimiters to search for. If null, the socket is read until a timeout occurs or the server closes the connection.
Receives data until a delimiter is found.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Read( _
   ByVal delimiters() As String _
) As Data
Visual Basic (Usage)Copy Code
Dim instance As TcpBase
Dim delimiters() As String
Dim value As Data
 
value = instance.Read(delimiters)
C# 
public Data Read( 
   string[] delimiters
)
Managed Extensions for C++ 
public: Data* Read( 
   string*[]* delimiters
) 
C++/CLI 
public:
Data^ Read( 
   array<String^>^ delimiters
) 

Parameters

delimiters
An array of delimiters to search for. If null, the socket is read until a timeout occurs or the server closes the connection.

Return Value

A Data object encapsulating the received data.

Remarks

This method blocks until a delimiter is found, the timeout period expires, or the server closes the connection. If the method times out, all received data will be returned, and an exception will NOT be thrown. Instead, the returned Data.Delimiter will be null, indicating no delimiter was not found.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.